package com.chaosj.tools.traits

import com.chaosj.tools.StockDiscoverTools

trait TraitRule {
    boolean upUp(int start, List<StockDiscoverTools.DescriptionStock> stocks, int count){
        return (stocks.get(start).upDownFlag()== StockDiscoverTools.ResultEnum.UP) && start >0 ? upUp(start-1,stocks,count-1) : true
    }

    boolean downDown(int start, List<StockDiscoverTools.DescriptionStock> stocks, int count){
        return (stocks.get(start).upDownFlag()== StockDiscoverTools.ResultEnum.DOWN) && start >0 ? downDown(start-1,stocks,count-1) : true
    }
}